package com.dreamlin.okhttp;

import com.google.gson.annotations.SerializedName;

public class BaseEntity<T> {
    @SerializedName(value = "code", alternate = {"status"})
    int code;
    @SerializedName(value = "msg", alternate = {"message"})
    String msg;
    @SerializedName("data")
    T result;

    @Override
    public String toString() {
        return "BaseEntity{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", result=" + result.toString() +
                '}';
    }
}
